<!--
 * @Author: your name
 * @Date: 2021-02-21 10:46:59
 * @LastEditTime: 2021-04-21 19:03:44
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /dvr-ui/src/App.vue
-->
<template>
  <div style="margin-top: 15px;">
    <img src="../src/assets/bilibili-backTop.jpg" />

    <el-menu :default-active="activeIndex"
             class="el-menu-demo"
             mode="horizontal"
             @select="sumHandleSelect">
      <el-menu-item index="1">视频搜索</el-menu-item>
      <el-menu-item index="2">上传视频</el-menu-item>
    </el-menu>
    <router-view />

  </div>

</template>

<script>




//将base中方法导入
import { sumHandleSelect } from './methods/base'

export default {
  name: 'App',
  //添加视频播放器
  data () {
    return {
      activeIndex: '1',
    }
  },
  methods: {
    //base文件内定义
    sumHandleSelect,
  }
}
</script>

<style>
[v-cloak] {
  display: none;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

.item-wrapper {
  height: 25%;
  width: 25%;
  padding: 10px;
  /* 10px为实际间隔的一半，此处主要用padding-left和padding-right，top和bottom为上下间距 */
}
</style>